package com.kly.user.controller;

import com.fqgj.common.api.Response;
import com.kly.user.dto.AppInfoDto;
import com.kly.user.service.AppOperateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("app")
public class AppOperateController {

    @Autowired
    AppOperateService appOperateService;

    @ResponseBody
    @RequestMapping(value = "/code")
    public Response<AppInfoDto> test(String appCode, Integer versionCode) {
        return appOperateService.upGradation(appCode, versionCode);
    }
}
